import instance from '@/utils/axios'

// 获取产品列表
export const getDouyinProduct = () => {
  return instance({
    url: 'douyin/product-list',
    method: 'post'
  })
}

// 获取脚本列表
export const getDouyinCate = () => {
  return instance({
    url: 'douyin/cate-list',
    method: 'post'
  })
}

// 视频文件上传
export const uploadDouyinFile = (data) => {
  return instance({
    url: 'douyin/upload',
    method: 'post',
    data,
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}

// 提交
export const setDouyinInfo = (data) => {
  return instance({
    url: 'douyin/save-video',
    method: 'post',
    data
  })
}
